/*	$ Header: $
 *
 *	Copyright 2011 NCS Pearson, Inc. All rights reserved.
 */

package users.clemka;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import users.clemka.beans.Config;

/**
 *
 *  @author clemka
 *  @version $Revision: #3 $ submitted $DateTime: $ by $Author: $
 *  @since 2.3.xxxx
 */
public class SpringFactory {

	public static void main(String args[]){
		final ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[] {"./clemka.main.xml"});

		final Config config = (Config) appContext.getBean("config");

		System.out.println(config.getParameters().getUsername());
		System.out.println(config.getParameters().getPassword());
		System.out.println(config.getParameters().getConnection());
		System.out.println(config.getDateFormat());
		System.out.println(config.getMaxCacheSize());
	}
}
